// ------------------------------------------------------ Naming ------------------------------------------------------
Name Dassault Mirage 2000
ShortName Mirage_2000
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconmirage2000
Model faf.mirage2000
Texture mirage2000
//Third Person Camera Distance
CameraDistance 18.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 0.0
HasGear True
ModelScale 1
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 1.0
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2.5
TurnRightSpeed 2.5
//Pitch modifiers
LookUpSpeed 2.5
LookDownSpeed 2.5
//Roll modifiers
RollLeftSpeed 2.9
RollRightSpeed 2.9
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.4
//Lift
//Lift 2.5
//Mass (In tons)
Mass 2.7
//Moment of Inertia (in crazy units. Just fiddle with this until you find something nice)
MomentOfInertia 10.0
//More bounciness means the vehicle will bounce more upon going up slopes, but fall through the ground less
Bounciness 1.0
flightCeiling 1700
//Wheels
NumWheels 3
WheelPosition 0 -40 -10 -39
WheelPosition 1 -40 -10 39
WheelPosition 2 70 -10 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 54 0 0 core metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Missile
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 2
ShootDelaySecondary 10
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary SemiAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 44 20 -13 core browning
ShootPointPrimary 44 20 13 core browning
ShootPointSecondary -45 14 -73 leftWing
ShootPointSecondary -45 14 73 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 2
AllowAllAmmo False
AddAmmo AIM4
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 62 28 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound HarrierIdle
StartSoundLength 140
PropSound JetEngine2
PropSoundLength 47
ShootSoundPrimary JetShoot
ShootSoundSecondary MissileShoot
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 advancedMetalCockpit
AddRecipeParts coreWheel 2 wheel
AddRecipeParts nose 1 metalNose
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts tail 1 metalTail
AddRecipeParts rightWingWheel 1 wheel
AddRecipeParts leftWingWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 5 white
AddDye 1 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart nose 100 104 18 -10 54 22 20
SetupPart core 100 51 18 -10 53 35 20
SetupPart core 100 -44 17 -10 95 34 20
SetupPart core 100 -44 17 -23 95 30 13
SetupPart core 100 -44 17 10 95 30 13
SetupPart tail 100 -161 17 -10 117 32 20
SetupPart tail 100 -161 17 -23 117 30 13
SetupPart tail 100 -161 17 10 117 30 13
SetupPart tail 100 -154 49 -2 108 56 4
SetupPart leftWing 100 -114 20 -101 148 8 78
SetupPart rightWing 100 -114 20 23 148 8 78

BulletDetection 4

BulletSpeed 5

CollisionPoint 158 25 0 nose
CollisionPoint 133 25 0 nose
CollisionPoint 62 25 0 core
CollisionPoint 22 25 0 core
CollisionPoint -4 37 -17 core
CollisionPoint -5 37 18 core
CollisionPoint -107 25 0 tail
CollisionPoint -123 36 -13 tail
CollisionPoint -122 36 13 tail
CollisionPoint -138 91 0 tail
CollisionPoint -68 25 -46 leftWing
CollisionPoint -91 25 -79 leftWing
CollisionPoint -68 25 46 rightWing
CollisionPoint -91 25 79 rightWing

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 50

flightCeiling 1706 
hasPlaneRadar true
radarPositionOffset 20
radarRange 2000
radarVisible true 
radarRefreshDelay 10

ReloadSoundPrimary PG_reload
ReloadTimePrimary 80
ReloadTimeSecondary 140
ReloadSoundSecondary PlaneBomb_reload1

EngineSoundRange 1000

AddEmitter flansmod.fmsmoke 1 [-153,36,0] [1,1,1] [-3,0,0] 0.05 0.2 0 1 tail
AddEmitter flansmod.fmsmoke 1 [-153,36,0] [1,1,1] [-2,0,0] 0.2 0.5 0 1 tail
AddEmitter flansmod.fmsmoke 1 [-153,36,0] [1,1,1] [-4,0,0] 0.5 0.8 0 1 tail

AddEmitter flansmod.fmflame 1 [-153,36,0] [3,1,1] [-1,0,0] 0.5 0.8 0 1 tail
AddEmitter flansmod.fmflame 1 [-153,36,0] [3,3,3] [3,0,0] 0.8 2 0 1 tail
AddEmitter flansmod.fmflame 1 [-153,36,0] [3,3,3] [3,0,0] 0.8 2 0 1 tail
AddEmitter flansmod.fmflame 1 [-153,36,0] [3,3,3] [3,0,0] 0.8 2 0 1 tail